package com.panda.web.mapper.wechat;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panda.web.entity.wechat.WechatGzh;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface WechatGzhMapper extends BaseMapper<WechatGzh> {
    @Select("select  * from wechat_gzh where openid =#{openid} ")
    WechatGzh findByOpenid(String openid);
    @Delete("delete from wechat_gzh where openid =#{openid}")
    void deleteByOpenid(String openid);
    @Select("select  * from wechat_gzh where unionid =#{unionid} ")
    WechatGzh findByUnionid(String unionid);
}
